Skip to content

ci: report bundle size with preactjs/compressed-size-action - #153

Merged
stijnvanhulle merged 1 commit into
mainfrom
claude/dazzling-babbage-s0qlK
Jun 8, 2026
Merged

ci: report bundle size with preactjs/compressed-size-action#153
stijnvanhulle merged 1 commit into
mainfrom
claude/dazzling-babbage-s0qlK

Conversation

@stijnvanhulle

Copy link
Copy Markdown
Owner

Summary

Swaps the size-limit bundle-size CLI for the preactjs/compressed-size-action GitHub Action, which reports the gzipped size delta of the package bundles directly on each pull request.

Changes

  • .github/workflows/pr.yml — add a compressed-size job that checks out the PR with full history, sets up the toolchain, and runs preactjs/compressed-size-action@v2 (pinned to SHA 66325aa). It builds the base and PR via the root build script and comments the gzipped diff for ./packages/*/dist/**/*.{js,mjs,cjs}.
  • Drop size-limit and @size-limit/file from devDependencies and the pnpm catalog, and regenerate pnpm-lock.yaml.

Notes

  • The action posts a sticky PR comment; on fork PRs (no comment permission) it prints the report to the job log instead.
  • The job is gated on pull_request events, so manual workflow_dispatch runs skip it (no base ref to diff against).

https://claude.ai/code/session_014t65y4MTZfYWAuXQd8FhLP


Generated by Claude Code

Replace the size-limit CLI with the preactjs/compressed-size-action GitHub Action for bundle-size reporting on pull requests.

- Add a `compressed-size` job to the PR workflow that comments the gzipped size delta of the package bundles on pull requests.
- Drop `size-limit` and `@size-limit/file` from devDependencies and the pnpm catalog, and regenerate the lockfile.

https://claude.ai/code/session_014t65y4MTZfYWAuXQd8FhLP
@codesandbox

codesandbox Bot commented Jun 8, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 273 B

ℹ️ View Unchanged
Filename Size
packages/core/dist/index.js 112 B
packages/demo/dist/index.js 161 B

compressed-size-action

@pkg-pr-new

pkg-pr-new Bot commented Jun 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/stijnvanhulle/template/@stijnvanhulle/template-core@153
npm i https://pkg.pr.new/stijnvanhulle/template/@stijnvanhulle/template-demo@153

commit: fe9aa98

@stijnvanhulle
stijnvanhulle merged commit 5cb935d into main Jun 8, 2026
9 checks passed
@github-actions
github-actions Bot deleted the claude/dazzling-babbage-s0qlK branch June 8, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants